<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="edu.tms.controller.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>财务详情</title>
    
    <meta name="viewport" content="width=device-width,initial-scale=1" />
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/navs.css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/default.css">
	<link rel="stylesheet" type="text/css" href="css/f/assignment.css"/>
	<script src="js/jquery.min.js"></script>
	<script src="js/f/default.js"></script>

  </head>
  <body>
  <div class="all">
  	<jsp:include page="/nav.jsp"></jsp:include>
	  	<div class="rightall float-left">
		  	<div class="already">
		  		<input type="hidden" value="${error_msg }" name="errorMsg" />
			  	<div class="already-title">
					<div class="left">财务详情 </div>
				</div>
					<c:if test="${not empty classfees }">
				    	<table>
							<tr class="tr-style-head">
								<td>班级</td>
			  					<td>办理人</td>
			  					<td>收支</td>
			  					<td>金额</td>
			  					<td>明细</td>
			  					<td>时间</td>
			  					<td>总金额</td>
							</tr>
							<c:forEach var="fee" items="${classfees }">
								<tr class="tr-style">
									<td>${fee.className }</td>
				  					<td>${fee.userName}</td>
				  					<c:if test="${fee.classFeeState == 2}">
				  						<td style="color:red;">支出</td>
				  					</c:if>
				  					<c:if test="${fee.classFeeState == 1}">
				  						<td style="color:blue;">收入</td>
				  					</c:if>
				  					<td>${fee.money }</td>
				  					<td>${fee.details }</td>
				  					<td>${fee.createTime }</td>
				  					<td>${fee.total }</td>
								</tr>
							</c:forEach>
						</table>
					</c:if>
					<c:if test="${pages > 1 }">
		            	<div class="previous">
		              	 		<c:if test="${pageNo > 1}"> <a href="student/classfee.do?pageNo=${pageNo-1 }">上一页</a> </c:if>
		              	 		<c:forEach var="p" begin="1" end="${pages }" step="1">
		              	 		<c:if test="${p==pageNo }">
		                   			<span style="font-size:18px;color:#446ee6;">&nbsp;${p}&nbsp;</span>
		                   		</c:if>
		                   		<c:if test="${p!=pageNo }">
		                   			<a href="student/classfee.do?pageNo=${p }" >&nbsp;${p}&nbsp;</a>
		                   		</c:if>
		               		 </c:forEach>
		                	<c:if test="${pageNo < pages}"><a href="student/classfee.do?pageNo=${pageNo+1 }">下一页</a></c:if>
		                </div>
               		</c:if>
				</div>
			</div>
	</div>
  </body>
</html>
